import request from '@/utils/request'

export const getCompanyList = data => request.get('/park/enterprise', { params: data })
export const getSecondCompanyList = id => request.get(`/park/enterprise/rent/${ id }`)
export const getCompanyItem = id => request.get(`park/enterprise/${ id }`)
export const getIndustryList = () => request.get('/park/industry')
export const addCompanyItem = data => request.post('/park/enterprise', data)
export const addContractItem = data => request.post('/park/enterprise/rent', data)
export const editCompanyItem = data => request.put('/park/enterprise', data)
export const cancelContractItem = id => request.put(`/park/enterprise/rent/${ id }`)
export const delCompanyItem = id => request.delete(`/park/enterprise/${ id }`)
export const delContractItem = id => request.delete(`/park/enterprise/rent/${ id }`)
